<script setup>
import ReadmeItem from './ReadmeItem.vue'
import axios from 'axios'
</script>

<template>
  <ReadmeItem>
    <template #markdown>
      <div v-html="message" class="markdown-content"></div>
    </template>
  </ReadmeItem>
</template>

<script>
export default {
  name: 'TheReadme',
  data() {
    return {
      message: '',
    }
  },
  mounted() {
    axios.get(this.$url + '/api/readme')
    .then(response => {
      this.message = response.data.message
      console.log(this.message)
    })
  },
}
</script>

<style scoped>
.markdown-content {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}
</style>